#include "PDTExpBoolUn.h"
#include "PDTCodeGraph.h"


void PDTExpBoolUn::setOperand (PDTExpBool &operand)
{
	addChild(&operand);
	operand.addParent(this);
}

PDTExpBool *PDTExpBoolUn::getOperand ()
{
	return dynamic_cast<PDTExpBool*>(children[0]);
}


PDTExpBoolUn::PDTExpBoolUn(PDTCodeGraph & CG,PDTExpBool &operand):PDTExpBool(CG){

	addChild(&operand);

	operand.addParent(this);

}
